package com.dreammakerteam.frameworkdemo.qzhj.domain;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 清真泛化产品附件
 * </p>
 *
 * @author Yanghu
 * @since 2017-10-11
 */
@TableName("d_qzhj_product_attachment")
public class DQzhjProductAttachmentDo extends Model<DQzhjProductAttachmentDo> {


	private static final long serialVersionUID = 158407935473821284L;
	/**
     * id
     */
	private Long id;
    /**
     * 产品id
     */
	@TableField("prod_id")
	private Long prodId;
    /**
     * 附件名
     */
	private String name;
    /**
     * 附件类型
     */
	private Integer type;
    /**
     * 物理路径
     */
	private String path;
    /**
     * 是图片
     */
	private Boolean picture;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "DQzhjProductAttachmentDo{" +
				"id=" + id +
				", prodId=" + prodId +
				", name='" + name + '\'' +
				", type=" + type +
				", path='" + path + '\'' +
				", picture=" + picture +
				'}';
	}

	public Long getId() {
		return id;
	}

	public DQzhjProductAttachmentDo setId(Long id) {
		this.id = id;
		return this;
	}

	public Long getProdId() {
		return prodId;
	}

	public DQzhjProductAttachmentDo setProdId(Long prodId) {
		this.prodId = prodId;
		return this;
	}

	public String getName() {
		return name;
	}

	public DQzhjProductAttachmentDo setName(String name) {
		this.name = name;
		return this;
	}

	public Integer getType() {
		return type;
	}

	public DQzhjProductAttachmentDo setType(Integer type) {
		this.type = type;
		return this;
	}

	public String getPath() {
		return path;
	}

	public DQzhjProductAttachmentDo setPath(String path) {
		this.path = path;
		return this;
	}

	public Boolean getPicture() {
		return picture;
	}

	public DQzhjProductAttachmentDo setPicture(Boolean picture) {
		this.picture = picture;
		return this;
	}
}
